package com.asianrapid.service.impl.sys;

import com.asianrapid.dao.LqrwDao;
import com.asianrapid.model.sys.LqrwEntity;
import com.asianrapid.service.sys.LqrwService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "lqrwServiceImpl")
public class LqrwServiceImpl implements LqrwService {
    @Autowired
    private LqrwDao lqrwDao;

    @Override
    public List<LqrwEntity> getalllqrw(int pageSize, int start) {
        int stats = 0;
        List<LqrwEntity> alllqrw = lqrwDao.getalllqrw(stats, pageSize, start);
        return alllqrw;
    }

    @Override
    public int getCount() {
        int stats = 0;
        int result = lqrwDao.getCount(stats);
        return result;
    }

    @Override
    public List<LqrwEntity> select() {
        return lqrwDao.select();
    }

    @Override
    public void insertlqrw(LqrwEntity lqrwEntity) {
        lqrwDao.insertlqrw(lqrwEntity);
    }

    @Override
    public void updatelqrw(LqrwEntity lqrwEntity) {
        lqrwDao.updatelqrw(lqrwEntity);
    }

    @Override
    public LqrwEntity loadw(Integer groupId) {
        return lqrwDao.loadw(groupId);
    }

    @Override
    public void deletelqrw(List<String> groupId) {
        lqrwDao.deletelqrw(groupId);
    }
}
